package com.parenting.sevice;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;

import com.parenting.entities.ShopperChild;
import com.parenting.request.ShopperChildCheck;
import com.parenting.response.ShopperChildResponse;
import com.parenting.util.base.Result;


import java.util.List;

/**
 * <p>
 * 宝宝认证 服务类
 * </p>
 *
 * @author zcj
 * @since 2021-05-12
 */
public interface ShopperChildService extends IService<ShopperChild> {

    /**
     * @description: 后台审核
     * @param: [childDTO, id]
     * @return: com.parenting.vo.ResultVO
     * @author: zcj
     * @date: 2021/5/12
     */
    Result check(ShopperChildCheck childDTO, Long id) throws JsonProcessingException;


    /**
     * @param current
     * @param size
     * @param type
     * @description: 待审核集合
     * @param: []
     * @return: com.parenting.vo.ResultVO<org.springframework.data.domain.Page < com.parenting.plaza.vo.ShopperChildVO>>
     * @author: zcj
     * @date: 2021/5/13
     */
    Result<Page<ShopperChildResponse>> childCheckList(Integer current, Integer size, Integer type);



    /**
     * @description: 宝宝详情
     * @param: [id]
     * @return: com.parenting.vo.ResultVO<com.parenting.plaza.vo.ShopperChildVO>
     * @author: zcj
     * @date: 2021/5/27
     */
    Result<ShopperChildResponse> childInfo(Long id);
}
